package mygui;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.KeyStroke;

import kernel.Simulator;

public class ActionPreferences extends AbstractAction{

    MonIHM _ihm;
    
    public ActionPreferences(MonIHM ihm){
	_ihm = ihm;

	putValue(AbstractAction.NAME,"Preferences");
	putValue(AbstractAction.SHORT_DESCRIPTION,"Simulation/software preferences");
	putValue(AbstractAction.ACCELERATOR_KEY,KeyStroke.getKeyStroke(KeyEvent.VK_P,KeyEvent.CTRL_MASK ));
	putValue(AbstractAction.SMALL_ICON,UIM.createImageIcon("images/properties.png","Simulation/software preferences"));
	
    }
 
    public void actionPerformed(ActionEvent e) {
	PreferencesProperties pref = new PreferencesProperties(_ihm);
    } 
}
